<%@ page language="java" pageEncoding="utf-8" %>
<%--<%@ taglib prefix="s" uri="/struts-tags" %>--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
    <base href="<%=basePath%>">
    <title>云实践管理平台</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <!--favicon-->
    <link rel="shortcut icon" href="Main/assets/images/favicon.ico" type="image/x-icon">
    <!-- Vector CSS -->
    <link href="Main/assets/plugins/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet"/>
    <!-- simplebar CSS-->
    <link href="Main/assets/plugins/simplebar/css/simplebar.css" rel="stylesheet"/>
    <!-- Bootstrap core CSS-->
    <link href="Main/assets/css/bootstrap.min.css" rel="stylesheet"/>
    <!-- animate CSS-->
    <link href="Main/assets/css/animate.css" rel="stylesheet" type="text/css"/>
    <!-- Icons CSS-->
    <link href="Main/assets/css/icons.css" rel="stylesheet" type="text/css"/>
    <!-- Sidebar CSS-->
    <link href="Main/assets/css/sidebar-menu.css" rel="stylesheet"/>
    <!-- Custom Style-->
    <link href="Main/assets/css/app-style.css" rel="stylesheet"/>

</head>

<body>

<!-- start loader -->
<div id="pageloader-overlay" class="visible incoming">
    <div class="loader-wrapper-outer">
        <div class="loader-wrapper-inner">
            <div class="loader"></div>
        </div>
    </div>
</div>
<!-- end loader -->

<c:choose>
<c:when test="${stu!=null}">
    <!--Start sidebar-wrapper-->
    <!--学生登录 -->
    <div id="sidebar-wrapper" data-simplebar="" data-simplebar-auto-hide="true">
        <div class="brand-logo">
            <a href="Main/index.jsp">
                <img src="Main/assets/images/logo-icon.png" class="logo-icon" alt="logo icon">
                <h5 class="logo-text">云实践管理平台</h5>
            </a>
        </div>
        <div class="user-details">
            <div class="media align-items-center user-pointer collapsed" data-toggle="collapse"
                 data-target="#user-dropdown">
                <!--<div class="avatar"><img class="mr-3 side-user-img" src="Main/assets/images/avatars/avatar-13.png" alt="user avatar"></div>-->
                <div class="media-body" style="text-align: center;">
                    <h6 class="side-user-name">学生:${stu.sname}</h6>
                </div>
            </div>
            <div id="user-dropdown" class="collapse">
                <ul class="user-setting-menu">
                    <li>
                        <a href="stupersonal?stno=${stu.stno}" target="main"><i class="icon-user"></i> 个人信息 </a>
                    </li>
                    <li>
                        <a href="../cplat"><i class="icon-power"></i> 退出登录</a>
                    </li>
                </ul>
            </div>
        </div>
        <ul class="sidebar-menu do-nicescrol">
            <li class="sidebar-header">主导航</li>
            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-view-dashboard"></i> <span>实训课程任务</span><i
                        class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li>
                        <a href="Main/TaskNew.jsp?stu=${stu.stno }" target="main"><i
                                class="zmdi zmdi-long-arrow-right"></i>
                            查看任务 </a>
                            <%--                         <a href="Tasknew" target="main"><i class="zmdi zmdi-long-arrow-right"></i>--%>
                            <%--                                  查看任务 </a>--%>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-card-travel"></i>
                    <span>技术文档</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="sidebar-submenu">

                    <li>
                        <a href="listTDocumentStu" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 技术文档表</a>
                    </li>

                </ul>
            </li>
            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-layers"></i> <span>问题收集库</span>
                    <i class="fa fa-angle-left float-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li>
                        <a href="Main/Problem.jsp" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 提问</a>
                    </li>
                    <li>
                        <a href="listProblem" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 未解答问题</a>
                    </li>
                    <li>
                        <a href="listSolve" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 已解答问题</a>
                    </li>
                </ul>
            </li>
        </ul>

    </div>
    <!--End sidebar-wrapper-->
</c:when>
<c:when test="${teacher!=null}">
<!--教师登录-->
<!-- Start wrapper-->
<div id="wrapper">

    <!--Start sidebar-wrapper-->
    <div id="sidebar-wrapper" data-simplebar="" data-simplebar-auto-hide="true">
        <div class="brand-logo">
            <a href="Main/index.jsp">
                <img src="Main/assets/images/logo-icon.png" class="logo-icon" alt="logo icon">
                <h5 class="logo-text">云实践管理平台</h5>
            </a>
        </div>
        <div class="user-details">
            <div class="media align-items-center user-pointer collapsed" data-toggle="collapse"
                 data-target="#user-dropdown">
                <!--<div class="avatar"><img class="mr-3 side-user-img" src="Main/assets/images/avatars/avatar-13.png" alt="user avatar"></div>-->
                <div class="media-body" style="text-align: center;">
                    <h6 class="side-user-name">教师:${teacher.tname}</h6>
                </div>
            </div>
            <div id="user-dropdown" class="collapse">
                <ul class="user-setting-menu">
                    <li>
                        <a href="teacherpersonal?tno=${teacher.tno}" target="main"><i class="icon-user"></i> 个人信息
                        </a>
                    </li>
                    <li>
                        <!--
                        描述：退出登录按钮
                    -->

                        <a href="../cplat"><i class="icon-power"></i> 退出登录</a>
                    </li>
                </ul>
            </div>
        </div>
        <ul class="sidebar-menu do-nicescrol">
            <li class="sidebar-header">主导航</li>
            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-view-dashboard"></i> <span>基础数据信息</span><i
                        class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li>
                        <a href="stulist" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 学生信息 </a>
                    </li>

                </ul>
            </li>
            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-view-dashboard"></i> <span>实训课程任务</span><i
                        class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li>
                        <a href="Main/TaskPublishing.jsp" target="main"><i class="zmdi zmdi-long-arrow-right"></i>
                            发布实现任务
                        </a>
                    </li>
                    <li>
                        <a href="listTask" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 任务列表 </a>
                    </li>
                    <li>
                        <a href="Tasklist" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 实训任务管理 </a>
                    </li>
                </ul>
            </li>

            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-card-travel"></i>
                    <span>技术文档</span>
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li>
                        <a href="Main/TdocumentPublishing.jsp" target="main"><i class="zmdi zmdi-long-arrow-right"></i>
                            发布技术文档</a>
                    </li>
                    <li>
                        <a href="listTDocument" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 技术文档表</a>
                    </li>

                </ul>
            </li>
            <li>
                <a href="javaScript:void();" class="waves-effect">
                    <i class="zmdi zmdi-layers"></i> <span>问题收集库</span>
                    <i class="fa fa-angle-left float-right"></i>
                </a>
                <ul class="sidebar-submenu">
                    <li>
                        <a href="listProblem" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 未解答问题</a>
                    </li>
                    <li>
                        <a href="listSolve" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 已解答问题</a>
                    </li>
                </ul>
            </li>


        </ul>

    </div>
    <!--End sidebar-wrapper-->

    <!--Start topbar header-->
    </c:when>
    <c:when test="${manager!=null}">
    <!--管理员登录-->
    <!-- Start wrapper-->
    <div id="wrapper">

        <!--Start sidebar-wrapper-->
        <div id="sidebar-wrapper" data-simplebar="" data-simplebar-auto-hide="true">
            <div class="brand-logo">
                <a href="Main/index.jsp">
                    <img src="Main/assets/images/logo-icon.png" class="logo-icon" alt="logo icon">
                    <h5 class="logo-text">云实践管理平台</h5>
                </a>
            </div>
            <div class="user-details">
                <div class="media align-items-center user-pointer collapsed" data-toggle="collapse"
                     data-target="#user-dropdown">
                    <div class="media-body" style="text-align: center;">
                        <h6 class="side-user-name">管理员：${manager.name}</h6>
                    </div>
                </div>
                <div id="user-dropdown" class="collapse">
                    <ul class="user-setting-menu">
                        <a href="../cplat"><i class="icon-power"></i> 退出登录</a>
                        </li>
                    </ul>
                </div>
            </div>
            <ul class="sidebar-menu do-nicescrol">
                <li class="sidebar-header">主导航</li>
                <li>
                    <a href="javaScript:void();" class="waves-effect">
                        <i class="zmdi zmdi-view-dashboard"></i> <span>基础数据设置</span><i
                            class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="sidebar-submenu">
                        <li>
                            <a href="listTeacher" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 教师信息 </a>
                        </li>
                        <li>
                            <a href="Mstulist" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 学生信息 </a>
                        </li>
                        <li>
                            <a href="courselist" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 课程信息 </a>
                        </li>

                    </ul>
                </li>

                <li>
                    <a href="javaScript:void();" class="waves-effect">
                        <i class="zmdi zmdi-card-travel"></i>
                        <span>技术文档</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="sidebar-submenu">
                        <li>
                            <a href="Main/TdocumentPublishing.jsp" target="main"><i
                                    class="zmdi zmdi-long-arrow-right"></i> 发布技术文档</a>
                        </li>
                        <li>
                            <a href="listTDocument" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 技术文档表</a>
                        </li>

                    </ul>
                </li>
                <li>
                    <a href="javaScript:void();" class="waves-effect">
                        <i class="zmdi zmdi-layers"></i> <span>问题收集库</span>
                        <i class="fa fa-angle-left float-right"></i>
                    </a>
                    <ul class="sidebar-submenu">
                        <li>
                            <a href="ProblemDel" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 未解答问题</a>
                        </li>
                        <li>
                            <a href="SolveDel" target="main"><i class="zmdi zmdi-long-arrow-right"></i> 已解答问题</a>
                        </li>
                    </ul>
                </li>
            </ul>

        </div>
        <!--End sidebar-wrapper-->
        <!--

描述：   导航条变化结束
-->
        <!--Start topbar header-->

        </c:when>
        <c:otherwise>
            <script>
                alert("非法访问");
                window.location.href = "../cplat"
            </script>
        </c:otherwise>
        </c:choose>

        <!--Start topbar header-->
        <header class="topbar-nav">
            <nav class="navbar navbar-expand fixed-top">
                <ul class="navbar-nav mr-auto align-items-center">
                    <li class="nav-item">
                        <a class="nav-link toggle-menu" href="javascript:void();">
                            <i class="icon-menu menu-icon"></i>
                        </a>
                    </li>
                    <!--
                            描述：搜索框
                        -->
                    <!--<li class="nav-item">
                            <form class="search-bar">
                                <input type="text" class="form-control" placeholder="Enter keywords">
                                <a href="javascript:void();"><i class="icon-magnifier"></i></a>
                            </form>
                        </li>-->
                </ul>


            </nav>
        </header>
        <!--End topbar header-->

        <div class="clearfix"></div>
        <div class="content-wrapper" style="height: 100%; ">
            <!--				<div style=" height: 100% ;width: 100% ;">-->
            <iframe width="100%" src="Main/welcome.jsp" name="main" style="border: 0px; height: 100%;"></iframe>
            <!--				</div>-->

        </div>

        <a href="javaScript:void();" class="back-to-top"><i class="fa fa-angle-double-up"></i> </a>
        <!--End Back To Top Button-->

        <!--Start footer-->
        <footer class="footer">
            <div class="container">
                <div class="text-center">
                    Copyright © 2020 xxxxxx学院 xx开发小组
                </div>
            </div>
        </footer>
        <!--End footer-->

    </div>
    <!--End wrapper-->

    <!-- Bootstrap core JavaScript-->
    <script src="Main/assets/js/jquery.min.js"></script>
    <script src="Main/assets/js/popper.min.js"></script>
    <script src="Main/assets/js/bootstrap.min.js"></script>

    <!-- simplebar js -->
    <script src="Main/assets/plugins/simplebar/js/simplebar.js"></script>
    <!-- sidebar-menu js -->
    <script src="Main/assets/js/sidebar-menu.js"></script>

    <!-- Custom scripts -->
    <script src="Main/assets/js/app-script.js"></script>

    <!-- Chart js -->
    <script src="Main/assets/plugins/Chart.js/Chart.min.js"></script>
    <!-- Vector map JavaScript -->
    <script src="Main/assets/plugins/vectormap/jquery-jvectormap-2.0.2.min.js"></script>
    <script src="Main/assets/plugins/vectormap/jquery-jvectormap-world-mill-en.js"></script>
    <!-- Easy Pie Chart JS -->
    <script src="Main/assets/plugins/jquery.easy-pie-chart/jquery.easypiechart.min.js"></script>
    <!-- fb-index2 js -->
    <script src="Main/assets/js/index.js"></script>

</body>

</html>